// eslint-disable-next-line no-unused-vars
import { request } from '../service'
import md5 from 'js-md5'
export default () => ({
  /**
   * @description 登录
   * @param {Object} data 登录携带的信息
   */
  SYS_USER_LOGIN (data = {}) {
    // 接口请求
    const json = JSON.stringify(data)
    const obj = JSON.parse(json)
    obj.password = md5(obj.password)
    // 接口请求
    return request({
      url: '/open/user/platformLogin',
      method: 'post',
      params: obj
    })
  }
})
